<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="departmentList.title"/></title>
<content tag="heading"><fmt:message key="departmentList.heading"/></content>
<meta name="menu" content="DepartmentMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editDepartment.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<html:rewrite forward="mainMenu"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="departmentList" cellspacing="0" cellpadding="0"
    id="departmentList" pagesize="25" class="table departmentList"
    export="true" requestURI="">

    <display:column property="id" sortable="true" headerClass="sortable"
        url="/editDepartment.html" paramId="id" paramProperty="id"
        titleKey="departmentForm.id"/>
    <display:column property="deptId" sortable="true" headerClass="sortable"
         titleKey="departmentForm.deptId"/>
    <display:column property="deptName" sortable="true" headerClass="sortable"
         titleKey="departmentForm.deptName"/>
    <display:column property="deptEngName" sortable="true" headerClass="sortable"
         titleKey="departmentForm.deptEngName"/>
    <display:column property="deptNamagerNo" sortable="true" headerClass="sortable"
         titleKey="departmentForm.deptNamagerNo"/>
    <display:column property="deptLevel" sortable="true" headerClass="sortable"
         titleKey="departmentForm.deptLevel"/>
    <display:column property="upperDept" sortable="true" headerClass="sortable"
         titleKey="departmentForm.upperDept"/>
    <display:column property="companyId" sortable="true" headerClass="sortable"
         titleKey="departmentForm.companyId"/>
    <!-- display:column property="oldDeptId" sortable="true" headerClass="sortable"
         titleKey="departmentForm.oldDeptId"/-->
    <display:column property="costCenter" sortable="true" headerClass="sortable"
         titleKey="departmentForm.costCenter"/>
    <display:column property="validDate" sortable="true" headerClass="sortable"
         titleKey="departmentForm.validDate"/>
    <!-- display:column property="invalidDate" sortable="true" headerClass="sortable"
         titleKey="departmentForm.invalidDate"/-->
    <display:column property="description" sortable="true" headerClass="sortable"
         titleKey="departmentForm.description"/>
    <display:column property="groupId" sortable="true" headerClass="sortable"
         titleKey="departmentForm.groupId"/>        
    <display:setProperty name="paging.banner.item_name"><fmt:message key="departmentList.title"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="departmentList.title"/></display:setProperty>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("departmentList");
</script>
